package com.team.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.team.app.dao.ReservationDao;
import com.team.app.model.Reservation;


@Service
public class ReservationServiceImpl implements ReservationService{
	@Autowired
    private ReservationDao reservationDao;     

	@Override
	@Transactional
	public Long create(Reservation obj) {
		// TODO Auto-generated method stub
		return reservationDao.create(obj);
	}

	@Override
	@Transactional
	public void edit(Reservation obj) {
		// TODO Auto-generated method stub
		reservationDao.edit(obj);
	}

	@Override
	@Transactional
	public void remove(Reservation obj) {
		// TODO Auto-generated method stub
		reservationDao.remove(obj);
	}

	@Override
	@Transactional
	public Reservation find(Object id) {
		// TODO Auto-generated method stub
		return reservationDao.find(id);
	}

	@Override
	@Transactional
	public List<Reservation> findAll() {
		// TODO Auto-generated method stub
		return reservationDao.findAll();
	}

	@Override
	@Transactional
	public List<Reservation> findRange(int[] range) {
		// TODO Auto-generated method stub
		return reservationDao.findRange(range);
	}

	@Override
	@Transactional
	public Long count() {
		// TODO Auto-generated method stub
		return reservationDao.count();
	}

	}
